package com.zhy.springcloud.service;

import com.zhy.springcloud.enetities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "seata-account-service")
public interface AccountService {
    
    /** 
    * 减余额
    * @Function: decrease 
    * @param userId
* @param money 
    * @Return com.zhy.springcloud.enetities.CommonResult
    *
    * @author: zhy
    * @date: 2021-01-07 15:25
    */
    
    @PostMapping(value = "/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money")BigDecimal money);


}
